﻿CREATE TABLE [dbo].[surveyMailAddress](
	[MailAddressID] [int] IDENTITY(1,1) NOT NULL,
	[MailListID] [int] NOT NULL,
	[Address] [nvarchar](500) NOT NULL,
	[FirstName] [nvarchar](500) NOT NULL,
	[LastName] [nvarchar](500) NOT NULL,
 CONSTRAINT [PK_MailAddress] PRIMARY KEY CLUSTERED 
(
	[MailAddressID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

ALTER TABLE [dbo].[surveyMailAddress]  WITH CHECK ADD  CONSTRAINT [FK_MailAddress_surveyMailList] FOREIGN KEY([MailListID])
REFERENCES [dbo].[surveyMailList] ([MailListID])
GO

ALTER TABLE [dbo].[surveyMailAddress] CHECK CONSTRAINT [FK_MailAddress_surveyMailList]
GO

